package com.hfkh;

import sun.rmi.transport.proxy.RMISocketInfo;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class Loop {
    public static void main(String[] args) {
        int i=1;
        int OSum=0;
        int ESum=0;
        while(i<=100){
            if(i%2==0){
                OSum+=i;
            }
            else {
                ESum+=i;
            }
            i++;
        }
        System .out.println("100以内的偶数和是："+OSum+"\n奇数和为："+ESum ) ;

    }
}
